package com.xjtu.chapter04.ex4_4;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/14 21:32
 */
public class Rectangle extends Shape {
    float width;
    float height;

    public Rectangle(float width, float height) {
        this.width = width;
        this.height = height;
    }
    public float area(){
        return width*height;
    }
}
